<template>
  <div class="security-index">
    <div class="panel">
      <div class="title">更改手机号</div>
      <div class="content">
        绑定手机号：{{user.phone_no | phoneHide}}
        <button class="blue-btn-outline" @click="checkBefore">
          更换绑定手机
        </button>
      </div>
    </div>
    <div class="panel">
      <div class="title">修改密码</div>
      <div class="content">
        修改登录密码
        <button class="blue-btn-outline" @click="changePwd">
          立即修改
        </button>
      </div>
    </div>
  </div>
</template>

<script>
  export default {

    name: 'index',
    computed: {
      user: {
        get() {
          return this.$store.state.user
        }
      }
    },
    data() {
      return {

      };
    },
    methods: {
      checkBefore() {
        this.$router.push('/personal/security/check-before')
      },
      changePwd() {
        this.$router.push('/personal/security/change-pwd')
      }
    }
  };
</script>

<style rel="stylesheet/scss" lang="scss" scoped>
.security-index{
  .panel{
    .title{
      background-color: #f4f4f4;
      padding: 0 20px;
      text-align: left;
      height: 40px;
      line-height: 40px;
    }
    .content{
      padding: 30px 0;
      padding-left: 20px;
      border-bottom: 1px solid #e5e6e7;
      .blue-btn-outline{
        float: right;
        width: 120px;
      }
    }
  }
}
</style>